package com.tszs.biz;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tszs.dao.mapper.SubJurisdictionMapper;
import com.tszs.entity.SubJurisdiction;
import com.tszs.entity.SubJurisdictionExample;
/**
 * @ 类名:SubJurisdictionBiz
 * @ 类描述:子权限crud
 * @ 创建时间: 2019-03-21 11:49:11
 * @author 王俊
 *
 */
@Service
public class SubJurisdictionBiz {
	@Autowired
	private SubJurisdictionMapper subJurisdictionMapper;
	/**
	 * @方法名: insertSelective
	 * @方法描述: 子权限添加
	 * @创建时间: 2019-03-21 11:49:11
	 * @author: 王俊
	 * @return: 0失败 1成功
	 * @record:SubJurisdiction
	 */
	@Transactional
	public  int insertSelective(SubJurisdiction record) {
		return subJurisdictionMapper.insertSelective(record);
	}
	/**
	 * @方法名: selectByExample
	 * @方法描述: 子权限查询
	 * @创建时间: 2019-03-21 11:49:11
	 * @author: 王俊
	 * @return: selectByExample 集合
	 */
	@Transactional
	public  List<SubJurisdiction> selectByExample(SubJurisdictionExample example){
		return subJurisdictionMapper.selectByExample(example);
	}
}
